forked from trent_larson/crowd-funder-for-time-pwa
fix: ClaimView now correctly displays User #0 registration status
Fix ClaimView component to use $accountSettings() instead of $settings() to get the current user's registration status. This resolves the issue where User #0 appeared unregistered in ClaimView despite having isRegistered: true in the database. - Changed created() method to use $accountSettings() for user-specific settings - Ensures ClaimView reads correct isRegistered value for current user - Fixes "You posted that. false" display issue for registered users
This commit is contained in:
@@ -186,15 +186,6 @@
|
||||
<font-awesome icon="comment" class="text-slate-400" />
|
||||
{{ issuerName }} posted that.
|
||||
</div>
|
||||
<!--
|
||||
<div>
|
||||
<router-link :to="'/claim-cert/' + encodeURIComponent(veriClaim.id)">
|
||||
<font-awesome icon="file-contract" class="text-slate-400" />
|
||||
<span class="ml-2 text-blue-500">Printable Certificate</span>
|
||||
</router-link>
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div class="mt-8">
|
||||
<button
|
||||
v-if="libsUtil.canFulfillOffer(veriClaim, isRegistered)"
|
||||
@@ -717,7 +708,7 @@ export default class ClaimView extends Vue {
|
||||
}
|
||||
|
||||
async created() {
|
||||
const settings = await this.$settings();
|
||||
const settings = await this.$accountSettings();
|
||||
|
||||
this.activeDid = settings.activeDid || "";
|
||||
this.apiServer = settings.apiServer || "";
|
||||
|
||||
Reference in New Issue
Block a user