diff --git a/android/.gradle/7.5.1/executionHistory/executionHistory.bin b/android/.gradle/7.5.1/executionHistory/executionHistory.bin index c9ac0a4c..84166e11 100644 Binary files a/android/.gradle/7.5.1/executionHistory/executionHistory.bin and b/android/.gradle/7.5.1/executionHistory/executionHistory.bin differ diff --git a/android/.gradle/7.5.1/executionHistory/executionHistory.lock b/android/.gradle/7.5.1/executionHistory/executionHistory.lock index 5b1944fe..5c8d5ed9 100644 Binary files a/android/.gradle/7.5.1/executionHistory/executionHistory.lock and b/android/.gradle/7.5.1/executionHistory/executionHistory.lock differ diff --git a/android/.gradle/7.5.1/fileHashes/fileHashes.bin b/android/.gradle/7.5.1/fileHashes/fileHashes.bin index d4654fc6..3e864ab7 100644 Binary files a/android/.gradle/7.5.1/fileHashes/fileHashes.bin and b/android/.gradle/7.5.1/fileHashes/fileHashes.bin differ diff --git a/android/.gradle/7.5.1/fileHashes/fileHashes.lock b/android/.gradle/7.5.1/fileHashes/fileHashes.lock index a45424fd..2b0fa9f3 100644 Binary files a/android/.gradle/7.5.1/fileHashes/fileHashes.lock and b/android/.gradle/7.5.1/fileHashes/fileHashes.lock differ diff --git a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 9c4b8bc3..ec3e73f8 100644 Binary files a/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/android/.gradle/file-system.probe b/android/.gradle/file-system.probe index 0926d5e8..31563c96 100644 Binary files a/android/.gradle/file-system.probe and b/android/.gradle/file-system.probe differ diff --git a/app/screens/account/add.js b/app/screens/account/add.js index 7d97754f..2e2f25d4 100644 --- a/app/screens/account/add.js +++ b/app/screens/account/add.js @@ -48,8 +48,19 @@ class AddAccountCard extends React.PureComponent { setCardNumber = (cn) => { this.setState({ valid: cn.length == 16 ? true : false }) } - + submitAddAccountCard = async () => { + const showInfoModal = (message) => { + this.props.openModal({ + open: true, + title: "Information", + body: message, + yesButtonOnly: true, + yesText: "Okay", + theme: this.props.app_theme + }); + }; + let accounts = await DB.accounts(); let included = accounts.find((account) => { return account.data.card_number === this.state.cardnumber @@ -83,12 +94,12 @@ class AddAccountCard extends React.PureComponent { }); }, 700); } else { - Alert.alert("Information", '\n' + JSON.stringify(process)) + showInfoModal(JSON.stringify(process)); } }, theme: this.props.app_theme }) - }, 300) : Alert.alert("Information", '\n' + res.message) + }, 300) : showInfoModal(res.message); } else { this.setState({ loading: true }) this.validateCard(success => { @@ -109,17 +120,17 @@ class AddAccountCard extends React.PureComponent { }) } }, err => { - Alert.alert("Information", `\n${err.message}`); + showInfoModal(err.message); this.setState({ loading: false }) }) } else { this.setState({ loading: false }) Platform.OS == 'ios' ? setTimeout(() => { - Alert.alert("Information", '\n' + success.message) - }, 300) : Alert.alert("Information", '\n' + success.message) + showInfoModal(success.message); + }, 300) : showInfoModal(success.message); } }, err => { - Alert.alert("Information", `\n${err.message}`); + showInfoModal(err.message); this.setState({ loading: false }) }) }