Skip to content

Commit 929bc99

Browse files
committed
fixup! Add Phaze order polling and login integration
"Remove global background polling - use scene-based polling in GiftCardListScene instead"
1 parent fbf031c commit 929bc99

File tree

3 files changed

+0
-319
lines changed

3 files changed

+0
-319
lines changed

src/actions/LoginActions.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ import {
5050
registerNotificationsV2,
5151
updateNotificationSettings
5252
} from './NotificationActions'
53-
import { startPhazeOrderPolling, stopPhazeOrderPolling } from './PhazeActions'
5453
import { showScamWarningModal } from './ScamWarningActions'
5554

5655
const PER_WALLET_TIMEOUT = 5000
@@ -316,11 +315,6 @@ export function initializeAccount(
316315
data: { ...accountInitObject }
317316
})
318317

319-
// Start Phaze gift card order polling service
320-
startPhazeOrderPolling(account).catch(err => {
321-
console.log('[Phaze] Failed to start polling service:', err)
322-
})
323-
324318
await dispatch(refreshAccountReferral())
325319

326320
refreshTouchId(account).catch(() => {
@@ -386,9 +380,6 @@ export function logoutRequest(
386380
Keyboard.dismiss()
387381
Airship.clear()
388382

389-
// Stop Phaze gift card order polling service
390-
stopPhazeOrderPolling()
391-
392383
dispatch({ type: 'LOGOUT' })
393384
if (typeof account.logout === 'function') await account.logout()
394385
const rootNavigation = getRootNavigation(navigation)

src/actions/PhazeActions.ts

Lines changed: 0 additions & 114 deletions
This file was deleted.

src/plugins/gift-cards/phazeOrderPollingService.ts

Lines changed: 0 additions & 196 deletions
This file was deleted.

0 commit comments

Comments
 (0)