fix
This commit is contained in:
@@ -801,7 +801,10 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
|
||||
return this.wrapOtpCall(() => Api.instance.requestOTP(wt, p.mobile, {}));
|
||||
}}
|
||||
onVerifyOTP={async (wt, p) => {
|
||||
return this.wrapOtpCall(() => Api.instance.verifyOTP(wt, p.mobile, p.otp, { sessionId: p.sessionId }));
|
||||
return this.wrapOtpCall(() => Api.instance.verifyOTP(wt, p.mobile, p.otp, {
|
||||
sessionId: p.sessionId,
|
||||
...(p.password ? { password: p.password } : {}),
|
||||
}));
|
||||
}}
|
||||
onSuccess={this.onOtpBindSuccess('showAmazonPayPersonalBind', 'Amazon Pay bound successfully')}
|
||||
onError={() => {}}
|
||||
@@ -1054,10 +1057,6 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
|
||||
bounces={false}
|
||||
>
|
||||
{groups.map(({ walletType, items }) => {
|
||||
if (items.length === 1) {
|
||||
return this.renderWalletItem(items[0]);
|
||||
}
|
||||
|
||||
const expanded = !!expandedBoundWalletGroups[walletType];
|
||||
const color = WALLET_TYPE_COLORS[walletType] ?? '#888';
|
||||
|
||||
@@ -1079,7 +1078,7 @@ export default class HomeScreen extends Component<any, HomeScreenState> {
|
||||
</View>
|
||||
<View style={{ flex: 1, marginLeft: 12 }}>
|
||||
<Text style={s.boundWalletGroupTitle}>{formatWalletTypeLabel(walletType)}</Text>
|
||||
<Text style={s.boundWalletGroupSub}>{items.length} accounts</Text>
|
||||
<Text style={s.boundWalletGroupSub}>{items.length} account{items.length > 1 ? 's' : ''}</Text>
|
||||
</View>
|
||||
<Text style={s.walletGroupChevron}>{expanded ? '▼' : '▶'}</Text>
|
||||
</TouchableOpacity>
|
||||
|
||||
Reference in New Issue
Block a user