Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 809e45b

Browse files
authored
Merge pull request #1489 from negar-binary/negar/fix_financial_assessment
negar/fix_financial_assessment
2 parents 6132c37 + 6f041ee commit 809e45b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/javascript/binary/base/page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ Header.prototype = {
774774
}
775775
},
776776
qualify_for_risk_classification: function() {
777-
if (page.client.is_logged_in && !page.client.is_virtual() && page.client.residence !== 'jp' && !$('body').hasClass('BlueTopBack') &&
777+
if (page.client.is_logged_in && !page.client.is_virtual() && page.client.residence !== 'jp' && !$('body').hasClass('BlueTopBack') && $('#assessment_form').length === 0 &&
778778
(localStorage.getItem('reality_check.ack') === '1' || !localStorage.getItem('reality_check.interval'))) {
779779
return true;
780780
}

src/javascript/binary/websocket_pages/socket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ function BinarySocketClass() {
252252
}
253253
}
254254
} else if (type === 'get_financial_assessment' && !response.hasOwnProperty('error')) {
255-
if (objectNotEmpty(response.get_financial_assessment)) {
255+
if (!objectNotEmpty(response.get_financial_assessment)) {
256256
if (page.header.qualify_for_risk_classification() && localStorage.getItem('risk_classification.response') === 'high') {
257257
localStorage.setItem('risk_classification', 'high');
258258
page.header.check_risk_classification();

0 commit comments

Comments
 (0)