Skip to content

Commit

Permalink
Removed unnecesary changes and database is setup as normally
Browse files Browse the repository at this point in the history
  • Loading branch information
emilnormann committed Dec 17, 2023
1 parent 2d8bf8b commit 3b242d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions app/(tabs)/expenses/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,8 @@ export default function SettleScreen() {
<View>
<FlatList
style={{marginTop: 48}}
data={calculateExpenses(calculateBalance(data, members, previousBalance))}
renderItem={renderItem}
extraData={data}
data={calculateExpenses(previousBalance = calculateBalance(data, members, previousBalance))}
renderItem={renderItem}
/>
<AreYouSureModal
title='Confirm Payment'
Expand Down
4 changes: 2 additions & 2 deletions constants/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ AsyncStorage.clear()
//rad asyncstorage adapter, on Android asyncstorage has 6mb limit by default
const asyncStore = asyncsStore({AsyncStorage});
let gun = Gun({
// peers: ['http://130.225.39.205:8080/gun'],
peers: ['http://130.225.39.205:8080/gun'],
store: asyncStore,
radisk: true,
localStorage: false,
Expand All @@ -28,7 +28,7 @@ declare global {
var SEA : ISEA;
var userPub : string;
}
gun.user().create("12345678","12345678",(ack : any)=>{gun.user('~' + ack.pub).get("fullName").put("myName")})

global.gun = gun
global.SEA = SEA
global.userPub = ""

0 comments on commit 3b242d3

Please sign in to comment.