fix widget buttons flash not working
This commit is contained in:
parent
01ce502109
commit
c8f658d328
@ -85,7 +85,7 @@ export default function QuizBanner({
|
||||
if (!quizData) return null;
|
||||
|
||||
const isQuizCompleted = quizData.settings.cfg.antifraud ? quizData.recentlyCompleted : false;
|
||||
const showButtonFlash = isQuizCompleted && isFlashEnabled;
|
||||
const showButtonFlash = !isQuizCompleted && isFlashEnabled;
|
||||
|
||||
let hoverBackgroundColor = buttonBackgroundColor;
|
||||
if (buttonBackgroundColor) {
|
||||
|
@ -74,7 +74,7 @@ export default function OpenQuizButton({
|
||||
if (!quizData) return null;
|
||||
|
||||
const isQuizCompleted = quizData.settings.cfg.antifraud ? quizData.recentlyCompleted : false;
|
||||
const showButtonFlash = isQuizCompleted && isFlashEnabled;
|
||||
const showButtonFlash = !isQuizCompleted && isFlashEnabled;
|
||||
|
||||
let hoverBackgroundColor = buttonBackgroundColor;
|
||||
if (buttonBackgroundColor) {
|
||||
|
@ -56,7 +56,7 @@ export default function QuizSideButton({
|
||||
if (!quizData) return null;
|
||||
|
||||
const isQuizCompleted = quizData.settings.cfg.antifraud ? quizData.recentlyCompleted : false;
|
||||
const showButtonFlash = isQuizCompleted && isFlashEnabled;
|
||||
const showButtonFlash = !isQuizCompleted && isFlashEnabled;
|
||||
|
||||
return createPortal(
|
||||
<ThemeProvider theme={lightTheme}>
|
||||
|
Loading…
Reference in New Issue
Block a user