Skip to content
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

fix(mobile): Battery fixes second revision #790

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/mobile/src/wallet/Tonkeeper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ export class Tonkeeper {
const walletsInstances = await Promise.all(
sortedWallets.map((wallet) => this.createWalletInstance(wallet)),
);
walletsInstances.map((instance) => instance.tonProof.obtainProof(keyPair));
walletsInstances.map((instance) =>
instance.tonProof.obtainProof(keyPair).then(() => instance.battery.load()),
);

await this.setWallet(walletsInstances[0]);

Expand Down
4 changes: 0 additions & 4 deletions packages/shared/components/RefillBattery/RefillBatteryIAP.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const RefillBatteryIAP = memo(() => {
name={item.icon}
/>
}
titleContainerStyle={styles.titleContainer.static}
title={
<View>
<View style={styles.priceContainer}>
Expand Down Expand Up @@ -176,9 +175,6 @@ const styles = Steezy.create({
flex: 1,
justifyContent: 'center',
},
titleContainer: {
flex: 2,
},
priceContainer: {
flexDirection: 'row',
alignItems: 'center',
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/i18n/locales/tonkeeper/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@
"description": {
"empty": "Swap, send tokens and NFTs.",
"other": {
"few": "Your battery has %{count} charges",
"many": "Your battery has %{count} charges",
"one": "Your battery has %{count} charge",
"other": "Your battery has %{count} charges"
"few": "%{count} charges",
"many": "%{count} charges",
"one": "%{count} charge",
"other": "%{count} charges"
}
},
"promocode": {
Expand Down
8 changes: 4 additions & 4 deletions packages/shared/i18n/locales/tonkeeper/ru-RU.json
Original file line number Diff line number Diff line change
Expand Up @@ -1092,10 +1092,10 @@
"description": {
"empty": "Обменивайте и отправляйте токены.",
"other": {
"few": "В вашей батарейке %{count} заряда",
"many": "В вашей батарейке %{count} зарядов",
"one": "В вашей батарейке %{count} заряд",
"other": "В вашей батарейке %{count} зарядов"
"few": "%{count} заряда",
"many": "%{count} зарядов",
"one": "%{count} заряд",
"other": "%{count} зарядов"
}
},
"promocode": {
Expand Down
Loading