Skip to content

Conversation

@lissavxo
Copy link
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
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
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
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.

3 participants