Skip to content

Feat/disable sound prop#487

Merged
chedieck merged 2 commits into
masterfrom
feat/disable-sound-prop
Apr 30, 2025
Merged

Feat/disable sound prop#487
chedieck merged 2 commits into
masterfrom
feat/disable-sound-prop

Conversation

@lissavxo
Copy link
Copy Markdown
Collaborator

Related to #465

Description

Added a new prop to disable on success sound

Test plan

Test if the sound is disabled when using the new prop on success scenario

@Klakurka Klakurka requested a review from chedieck April 17, 2025 16:28
const shiftStatus = await paymentClient.getPaymentStatus(altpaymentShift.id)
if (shiftStatus.status === 'settled') {
if (sound) txSound.play().catch(() => {});
if (sound && disableSound !== true) txSound.play().catch(() => {});
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be !isPropsTrue(disableSound) too?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@lissavxo lissavxo force-pushed the feat/disable-sound-prop branch from 90efb47 to 6de0dea Compare April 25, 2025 20:07
Copy link
Copy Markdown
Collaborator

@chedieck chedieck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well.

@chedieck chedieck merged commit ade65a8 into master Apr 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants