-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BOT]maryia/BOT-2462/fix: Total Payout remains zero for multipliers and accumulator QS #17703
base: master
Are you sure you want to change the base?
[BOT]maryia/BOT-2462/fix: Total Payout remains zero for multipliers and accumulator QS #17703
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Pull Request Test Coverage Report for Build 12137602786Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-maryia-matskevich-deriv-maryia-bot-2462.binary.sx/ |
const trade_options_blocks = window.Blockly.derivWorkspace | ||
.getAllBlocks() | ||
.filter( | ||
b => | ||
b.type === 'trade_definition_multiplier' || | ||
b.type === 'trade_definition_accumulator' | ||
); | ||
trade_options_blocks.forEach((trade_options_block: { selected_trade_type: string }) => { | ||
if ( | ||
trade_options_block.selected_trade_type === 'accumulator' || | ||
trade_options_block.selected_trade_type === 'multiplier' | ||
) { | ||
if (stats.total_payout !== bid_price && profit >= 0 && payout !== bid_price) { | ||
stats.total_payout += bid_price; | ||
} | ||
} | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maryia-matskevich-deriv we don't need to make all these changes. Let's get on a huddle with @rupato-deriv . We just need to take the bid_price out from the API response and use it like this: stats.total_payout += payout ?? bid_price ?? 0
We do not need to make all these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we've checked, make sense, we can make the solution much shorter, thank you guys🙏
Changes:
fix: Total Payout remains zero for multipliers and accumulator QS
Screenshots: