diff --git a/.env b/.env
index d076383f..2b5e3007 100644
--- a/.env
+++ b/.env
@@ -1,3 +1,3 @@
APP_VERSION=2.5.8
-APP_BUILD_NUMBER=435
\ No newline at end of file
+APP_BUILD_NUMBER=436
\ No newline at end of file
diff --git a/fastlane/metadata/android/en-US/changelogs/435.txt b/fastlane/metadata/android/en-US/changelogs/436.txt
similarity index 100%
rename from fastlane/metadata/android/en-US/changelogs/435.txt
rename to fastlane/metadata/android/en-US/changelogs/436.txt
diff --git a/fastlane/metadata/android/fr-FR/changelogs/435.txt b/fastlane/metadata/android/fr-FR/changelogs/436.txt
similarity index 100%
rename from fastlane/metadata/android/fr-FR/changelogs/435.txt
rename to fastlane/metadata/android/fr-FR/changelogs/436.txt
diff --git a/src/screens/Invoice/Invoice.tsx b/src/screens/Invoice/Invoice.tsx
index 8518bf3a..170330f5 100644
--- a/src/screens/Invoice/Invoice.tsx
+++ b/src/screens/Invoice/Invoice.tsx
@@ -310,97 +310,106 @@ export const Invoice = () => {
);
}, [invoiceCurrency]);
- const fiatSatAmountComponent = useMemo(() => {
- const elements = formatDecimalComponents((amount || 0) / 1000).reduce(
- (result, v) => {
- const currentIsEnabled =
- result[result.length - 1]?.isEnabled ||
- (typeof v === "number" && v !== 0);
- return [
- ...result,
- {
- value: v,
- isEnabled: currentIsEnabled
- }
- ];
- },
- [] as { value: string | number; isEnabled: boolean }[]
- );
-
- const isSatBtcInvoice =
- invoiceCurrency && ["sat", "BTC"].includes(invoiceCurrency);
+ const getFiatSatAmountComponent = useCallback(
+ (isSuccessScreen = false) => {
+ const elements = formatDecimalComponents((amount || 0) / 1000).reduce(
+ (result, v) => {
+ const currentIsEnabled =
+ result[result.length - 1]?.isEnabled ||
+ (typeof v === "number" && v !== 0);
+ return [
+ ...result,
+ {
+ value: v,
+ isEnabled: currentIsEnabled
+ }
+ ];
+ },
+ [] as { value: string | number; isEnabled: boolean }[]
+ );
- return (
- <>
-
- {!isSatBtcInvoice &&
- getFormattedUnit(
- invoiceFiatAmount,
- invoiceCurrency || "",
- unitDecimals
- )}
-
- {isAlive && (
-
-
- <>
- {elements.map((element) => (
-
- {element.value}
-
- ))}
- >
- sats
-
- )}
- {isExternalInvoice &&
- createdAt &&
- delay &&
- isAlive &&
- delay > rateUpdateDelay && (
-
+
+ {!isSatBtcInvoice &&
+ getFormattedUnit(
+ invoiceFiatAmount,
+ invoiceCurrency || "",
+ unitDecimals
+ )}
+
+ {isAlive && (
+
-
- {t("rateUpdatedIn")} {formatSecondsToMMSS(updateRateTime)}
-
-
-
+
+ <>
+ {elements.map((element) => (
+
+ {element.value}
+
+ ))}
+ >
+ sats
+
)}
- >
- );
- }, [
- invoiceFiatAmount,
- invoiceCurrency,
- unitDecimals,
- amount,
- isExternalInvoice,
- createdAt,
- delay,
- isAlive,
- colors.grey,
- colors.primaryLight,
- t,
- updateRateTime
- ]);
+ {isExternalInvoice &&
+ createdAt &&
+ delay &&
+ isAlive &&
+ delay > rateUpdateDelay && (
+
+
+ {t("rateUpdatedIn")} {formatSecondsToMMSS(updateRateTime)}
+
+
+
+ )}
+ >
+ );
+ },
+ [
+ invoiceFiatAmount,
+ invoiceCurrency,
+ unitDecimals,
+ amount,
+ isExternalInvoice,
+ createdAt,
+ delay,
+ isAlive,
+ colors.grey,
+ colors.primaryLight,
+ t,
+ updateRateTime
+ ]
+ );
const successLottieRef = useRef(null);
@@ -908,7 +917,7 @@ export const Invoice = () => {
{!isWithdraw ? t("invoicePaid") : t("withdrawSuccess")}
- {fiatSatAmountComponent}
+ {getFiatSatAmountComponent(true)}
@@ -1154,7 +1163,7 @@ export const Invoice = () => {
)}
- {fiatSatAmountComponent}
+ {getFiatSatAmountComponent()}
{alreadyPaidAmount > 0 && status === "underpaid" && (
<>