Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix final casing issues for ZEUS Pay #2027

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion models/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default class Invoice extends BaseModel {
}

@computed public get isZeusPay(): boolean {
if (this.getMemo?.startsWith('ZEUS PAY')) return true;
if (this.getMemo?.toLowerCase().startsWith('zeus pay')) return true;
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions stores/LightningAddressStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ export default class LightningAddressStore {
);

const fireLocalNotification = () => {
const title = 'ZEUS PAY payment received!';
const title = 'ZEUS Pay payment received!';
const body = `Payment of ${value_commas} sats automatically accepted`;
if (Platform.OS === 'android') {
Notifications.postLocalNotification({
Expand All @@ -955,7 +955,7 @@ export default class LightningAddressStore {
// 24 hrs
expiry: '86400',
value_msat: amount_msat,
memo: comment ? `ZEUS PAY: ${comment}` : 'ZEUS PAY',
memo: comment ? `ZEUS Pay: ${comment}` : 'ZEUS Pay',
preimage,
private:
this.settingsStore?.settings?.lightningAddress
Expand Down
2 changes: 1 addition & 1 deletion views/Settings/LightningAddress/LightningAddressInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default class LightningAddressInfo extends React.Component<
>
{localeString(
'views.Settings.LightningAddressInfo.pressToRedeem'
)}
).replace('ZEUS PAY', 'ZEUS Pay')}
</Text>
</ListItem.Subtitle>
</ListItem.Content>
Expand Down
Loading