File tree Expand file tree Collapse file tree
android/src/main/java/com/expensify/wallet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,6 +184,9 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
184184 override fun addCardToGoogleWallet (
185185 data : ReadableMap , promise : Promise
186186 ) {
187+ if (pendingPushTokenizePromise != null ) {
188+ return promise.reject(E_OPERATION_FAILED , " A tokenization request is already in progress" )
189+ }
187190 try {
188191 val cardData = data.toCardData() ? : return promise.reject(E_INVALID_DATA , " Insufficient data" )
189192 val cardNetwork = getCardNetwork(cardData.network)
@@ -210,6 +213,9 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
210213
211214 @ReactMethod
212215 override fun resumeAddCardToGoogleWallet (data : ReadableMap , promise : Promise ) {
216+ if (pendingPushTokenizePromise != null ) {
217+ return promise.reject(E_OPERATION_FAILED , " A tokenization request is already in progress" )
218+ }
213219 try {
214220 val tokenReferenceID = data.getString(" tokenReferenceID" )
215221 ? : return promise.reject(E_INVALID_DATA , " Missing tokenReferenceID" )
You can’t perform that action at this time.
0 commit comments