mirror of
https://github.com/pezkuwichain/pezkuwi-telegram-miniapp.git
synced 2026-06-18 00:11:07 +00:00
fix: LP staking logout issue and Kurdish text correction
- Replace window.location.reload() with onClose() in LPStakingModal - Fix Turkish word "ise" to Kurdish "be" in Rewards score formula
This commit is contained in:
@@ -150,10 +150,10 @@ export function LPStakingModal({ isOpen, onClose }: LPStakingModalProps) {
|
||||
showAlert(`Stake serket! Hash: ${hash.toString().slice(0, 16)}...`);
|
||||
setStakeAmount('');
|
||||
|
||||
// Refresh pools
|
||||
// Close modal after success
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 2000);
|
||||
onClose();
|
||||
}, 1500);
|
||||
} catch (err) {
|
||||
console.error('Stake error:', err);
|
||||
setError(err instanceof Error ? err.message : 'Stake neserketî');
|
||||
@@ -181,8 +181,8 @@ export function LPStakingModal({ isOpen, onClose }: LPStakingModalProps) {
|
||||
setUnstakeAmount('');
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 2000);
|
||||
onClose();
|
||||
}, 1500);
|
||||
} catch (err) {
|
||||
console.error('Unstake error:', err);
|
||||
setError(err instanceof Error ? err.message : 'Unstake neserketî');
|
||||
@@ -207,8 +207,8 @@ export function LPStakingModal({ isOpen, onClose }: LPStakingModalProps) {
|
||||
showAlert(`Xelat hat stendin! Hash: ${hash.toString().slice(0, 16)}...`);
|
||||
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 2000);
|
||||
onClose();
|
||||
}, 1500);
|
||||
} catch (err) {
|
||||
console.error('Claim error:', err);
|
||||
setError(err instanceof Error ? err.message : 'Xelat stendin neserketî');
|
||||
|
||||
Reference in New Issue
Block a user