mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-19 01:31:02 +00:00
fix: TypeScript errors, shadow deprecations, and build configuration
- Fix shadow style deprecation warnings across components (boxShadow) - Add type declaration files (codec.d.ts, modules.d.ts) - Update metro.config.cjs for proper asset extensions - Update tsconfig.json with module resolution settings - Fix TypeScript errors in shared/lib files - Update app icons (optimized PNG files)
This commit is contained in:
@@ -70,7 +70,7 @@ export default function StakingScreen() {
|
||||
const scores = await getAllScores(api, selectedAccount.address);
|
||||
|
||||
// 3. Get Current Era
|
||||
const currentEraOpt = await api.query.staking.currentEra();
|
||||
const currentEraOpt = await api.query.staking.currentEra() as any;
|
||||
const currentEra = currentEraOpt.unwrapOrDefault().toNumber();
|
||||
|
||||
// Calculations
|
||||
|
||||
Reference in New Issue
Block a user