-
Notifications
You must be signed in to change notification settings - Fork 117
Fix issue#613 show more info to maker when an order is taken #621
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
base: main
Are you sure you want to change the base?
Conversation
Add to invoice_payment_request message: order ID and payment method. On branch issue#613 Changes to be committed: modified: locales/de.yaml modified: locales/en.yaml modified: locales/es.yaml modified: locales/fa.yaml modified: locales/fr.yaml modified: locales/it.yaml modified: locales/ko.yaml modified: locales/pt.yaml modified: locales/ru.yaml modified: locales/uk.yaml
Add to someone_took_your_order message: order ID, fiat ammount and payment method. - Added logic to retrieve the currency symbol based on the order's fiat_code. - If a native currency symbol is found, it is used; otherwise, the fiat_code is used. - Passed the `currency` and `order` instance to the `sendMessage` function to be used in the buyer's notification. On branch issue#613 Changes to be committed: modified: bot/messages.ts modified: locales/de.yaml modified: locales/en.yaml modified: locales/es.yaml modified: locales/fa.yaml modified: locales/fr.yaml modified: locales/it.yaml modified: locales/ko.yaml modified: locales/pt.yaml modified: locales/ru.yaml modified: locales/uk.yaml
- Improved clarity in bot messages. - Adjusted message formatting to align with the defined style. modified: locales/de.yaml modified: locales/en.yaml modified: locales/es.yaml modified: locales/fa.yaml modified: locales/fr.yaml modified: locales/it.yaml modified: locales/ko.yaml modified: locales/pt.yaml modified: locales/ru.yaml modified: locales/uk.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, good job @wolfie2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Thanks for this valuable contribution @wolfie2023, for future contributions please sign you commits 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @wolfie2023, your branch is outdated. Please rebase and fix the errors.
I'm getting this error:
bot/messages.ts:414:5 - error TS2322: Type 'string' is not assignable to type 'IFiat'.
414 currency =
~~~~~~~~
Found 1 error in bot/messages.ts:414
But I fixed it this way.
- currency =
- !!currency && !!currency.symbol_native
- ? currency.symbol_native
- : order.fiat_code;
+ const currencySymbol =
+ currency && currency.symbol_native ? currency.symbol_native : order.fiat_code;
- currency,
+ currency: currencySymbol,
I'm no expert, so maybe you can find a better way to fix it.
Add to the messages invoice_payment_request and someone_took_your_order the id of the order that was taken, the fiat amount and the payment method