Skip to content

Commit

Permalink
add warning in payment processing screen
Browse files Browse the repository at this point in the history
  • Loading branch information
agron committed Feb 5, 2024
1 parent c982024 commit 7c9c89f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/screens/Payment/Processing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function ProcessingScreen({ navigation, route }: TProcessingPageP
fee: res.realFee,
isMelt: true,
isZap,
change: isNum(estFee) && isNum(res.realFee) ? estFee - res.realFee : undefined,
change: isNum(estFee) && isNum(res.realFee) ? estFee - res.realFee : undefined,
})
} catch (e) {
handleError({ e })
Expand All @@ -167,7 +167,7 @@ export default function ProcessingScreen({ navigation, route }: TProcessingPageP
navigation.navigate('success', {
amount,
fee: res.payResult.realFee,
change: isNum(estFee) && isNum(res.payResult.realFee) ? estFee - res.payResult.realFee : undefined,
change: isNum(estFee) && isNum(res.payResult.realFee) ? estFee - res.payResult.realFee : undefined,
isMelt: true
})
} catch (e) {
Expand Down Expand Up @@ -339,11 +339,9 @@ export default function ProcessingScreen({ navigation, route }: TProcessingPageP
return (
<View style={[globals(color).container, styles.container]}>
<Loading size={s(35)} nostr={!!nostr} />
<Txt
styles={[styles.descText]}
txt={t(processingTxt)}
/>
<Txt styles={[styles.descText]} txt={t(processingTxt)} />
<Txt styles={[styles.hint, { color: color.TEXT_SECONDARY }]} txt={t('invoiceHint')} />
<Txt styles={[styles.hint, { color: color.TEXT_SECONDARY }]} txt={t('dontClose', { ns: NS.common })} />
</View>
)
}
Expand Down

0 comments on commit 7c9c89f

Please sign in to comment.