Skip to content

bug: next sheet closes right after dismissing the quickpay intro #797

Description

@ovitrif

What happened?

After tapping Later on the QuickPay intro, the next sheet (here an incoming subscription proposal) opens and closes at once, so the proposal is never seen.

The QuickPay sheet's dismiss handler in MainNavView runs after its dismiss animation and calls hideSheet(), which clears whichever sheet is active by then.

Expected behavior

A sheet that opens right after the QuickPay intro is dismissed stays open. A sheet's dismiss handler closes only its own sheet.

Steps to Reproduce

  1. Have spending balance so the QuickPay intro shows.
  2. Tap Later on the QuickPay intro.
  3. An incoming subscription proposal presents about 0.3 s later.
  4. The subscription sheet closes at once.

Logs / Screenshots / Recordings

09:45:40.300 Hiding sheet quickpay reason: QuickpaySheet.swift:41 onLater()
09:45:40.634 Showing sheet subscription
09:45:40.879 Hiding sheet subscription reason: MainNavView.swift:276 body

Reproduced on master with a debug trigger that opens the subscription sheet 0.3 s after Later: it closes 0.24 s after it opens. Android is not affected: SheetHost fires its dismiss callback only while the dismissed sheet is still showing (synonymdev/bitkit-android#1186).

Bitkit Version

master at 3ac017b (2.5.0)

Device / OS

iPhone 17 simulator, iOS 26.5

Reproducibility

Always

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions