minor bug fix
This commit is contained in:
parent
7221a12518
commit
fddaecd022
@ -1269,14 +1269,13 @@
|
||||
<script src="scripts/floExchangeAPI.js"></script>
|
||||
<script src="scripts/qrcode.min.js"></script>
|
||||
<script id="onLoadStartUp">
|
||||
function onLoadStartUp() {
|
||||
async function onLoadStartUp() {
|
||||
showPage('loading')
|
||||
console.log("Starting the app! Please Wait!")
|
||||
floDapps.setCustomPrivKeyInput(getSignedIn)
|
||||
floDapps.setAppObjectStores({ savedIds: {}, savedUserData: {} })
|
||||
floExchangeAPI.init("FMxYC7gYZhouzqtHZukGnPiQ8nvG4CMzXM", "exchange").then(() => {
|
||||
console.log('Exchange API initialized!')
|
||||
})
|
||||
await floExchangeAPI.init("FMxYC7gYZhouzqtHZukGnPiQ8nvG4CMzXM", "exchange")
|
||||
console.log('Exchange API initialized!')
|
||||
floDapps.launchStartUp().then(result => {
|
||||
floGlobals.savedIds = {};
|
||||
floGlobals.savedUserData = {
|
||||
|
||||
@ -184,7 +184,7 @@ function statusReconnect() {
|
||||
}
|
||||
|
||||
var status_interval_instance = null;
|
||||
|
||||
// add page visibility API to startStatusInterval()
|
||||
function startStatusInterval() {
|
||||
if (status_interval_instance) {
|
||||
clearInterval(status_interval_instance);
|
||||
|
||||
@ -10,6 +10,7 @@
|
||||
|
||||
const relativeTime = new RelativeTime({ style: 'narrow' });
|
||||
|
||||
// use floDapps.storeContact() to store contacts that can be used by other apps on same device
|
||||
function syncUserData(obsName, data) {
|
||||
const dataToSend = Crypto.AES.encrypt(JSON.stringify(data), myPrivKey);
|
||||
return floCloudAPI.sendApplicationData(dataToSend, obsName, { receiverID: myFloID });
|
||||
@ -36,6 +37,7 @@ async function organizeSyncedData(obsName) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const userUI = {};
|
||||
function continueWalletTopup() {
|
||||
let cashier = User.findCashier();
|
||||
@ -197,7 +199,7 @@ userUI.renderCashierRequests = function (requests, error = null) {
|
||||
for (let transactionID in requests) {
|
||||
const { message: {amount,mode}, note, tag } = requests[transactionID];
|
||||
let status = tag ? 'completed' : (note ? 'rejected' : "pending");
|
||||
console.log(requests[transactionID])
|
||||
// console.log(requests[transactionID])
|
||||
if (status !== 'pending') {
|
||||
processedRequests++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user