Skip to content

Commit

Permalink
fix old new wallet when connect first time
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderKhabou committed Apr 24, 2024
1 parent bf035a0 commit 4e6a109
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build:ssr": "ng build && ng run satt-token-atayen:server",
"build-dev:ssr": "ng build --configuration dev-ssr && ng run satt-token-atayen:server:dev-ssr",
"prerender": "ng run satt-token-atayen:prerender",
"max-size": "export NODE_OPTIONS='--max-old-space-size=8192' && ng s"
"max-size": "set NODE_OPTIONS=\"--max-old-space-size=8192\" && ng s"
},
"browserslist": [
"extends browserslist-config-openmrs"
Expand Down
19 changes: 8 additions & 11 deletions src/app/wallet/wallet.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export class WalletComponent implements OnInit, OnDestroy {
successNumber = false;
successSpecial = false;
successWhitespaces = false;
successLength = false;
isV1: Boolean = localStorage.getItem('wallet_version') === 'v1';
successLength = false;
lineChartDataMonth: ChartDataSets[] = [
{
data: [
Expand Down Expand Up @@ -829,10 +829,6 @@ export class WalletComponent implements OnInit, OnDestroy {
);
}
ngOnInit(): void {
// this.modalService.open(this.setPwdTransactionModal, {
// backdrop: 'static',
// keyboard: false
// });

if (this.isV1) {
this.lineChartColors[0].backgroundColor = '#696DE4';
Expand Down Expand Up @@ -888,12 +884,13 @@ export class WalletComponent implements OnInit, OnDestroy {
this.totalbalancewallet();

this.getScreenWidth = window.innerWidth;
if (this.tokenStorageService.getWalletVersion() === 'v2') {
this.versionText = 'Old Wallet';
this.height = '250px';
} else {
this.versionText = 'New Wallet';
this.height = '300px';
if (!this.isV1) {
this.versionText = 'Old Wallet';
this.height = '250px';
} else
{
this.versionText = 'New Wallet';
this.height = '300px';
}

//this.verifyUserWalletV2();
Expand Down

0 comments on commit 4e6a109

Please sign in to comment.