Browse Source

fix problem where mounted ran before create and didn't load any claims

nostr
Trent Larson 2 months ago
parent
commit
3d5a0fc0b4
  1. 5
      src/views/QuickActionBvcEndView.vue

5
src/views/QuickActionBvcEndView.vue

@ -181,14 +181,13 @@ export default class QuickActionBvcBeginView extends Vue {
someoneGave = false; someoneGave = false;
async created() { async created() {
this.loadingConfirms = true;
const settings = await retrieveSettingsForActiveAccount(); const settings = await retrieveSettingsForActiveAccount();
this.apiServer = settings.apiServer || ""; this.apiServer = settings.apiServer || "";
this.activeDid = settings.activeDid || ""; this.activeDid = settings.activeDid || "";
this.allContacts = await db.contacts.toArray(); this.allContacts = await db.contacts.toArray();
}
async mounted() {
this.loadingConfirms = true;
let currentOrPreviousSat = DateTime.now().setZone("America/Denver"); let currentOrPreviousSat = DateTime.now().setZone("America/Denver");
if (currentOrPreviousSat.weekday < 6) { if (currentOrPreviousSat.weekday < 6) {
// it's not Saturday or Sunday, // it's not Saturday or Sunday,

Loading…
Cancel
Save