Skip to content

Commit bef5de0

Browse files
committed
fix: null value exception handling
1 parent a2840cf commit bef5de0

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

resources/js/Pages/Welcome.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
6464
</div> -->
6565
<div
66-
v-if="$page.props.auth.user.first_name != null"
66+
v-if="$page.props.auth.user && $page.props.auth.user.first_name != null"
6767
class="hidden md:flex items-center justify-end md:flex-1 lg:w-0"
6868
>
6969
<Link
@@ -249,19 +249,15 @@
249249
mode="button"
250250
ref="structure-search"
251251
></StructureSearch>
252-
<a
253-
class="group inline-flex ring-1 items-center justify-center rounded-full py-2 px-4 focus:outline-none ring-slate-200 text-slate-700 hover:text-slate-900 hover:ring-slate-300 active:bg-slate-100 active:text-slate-600 focus-visible:outline-blue-600 focus-visible:ring-slate-300"
252+
<Link
253+
href="/register"
254+
class="group inline-flex ring-1 items-center justify-center rounded-full py-2 px-4 focus:outline-none ring-slate-200 text-slate-700 hover:text-slate-900 hover:ring-slate-300 active:bg-slate-100 active:text-slate-600 focus-visible:outline-blue-600 focus-visible:ring-slate-300 bg-white"
254255
variant="outline"
255256
color="slate"
256-
href="/register"
257257
><span class="ml-3">Submit data</span>
258258
<ToolTip
259259
text="To submit data you will need an account with nmrXiv, so you will be redirected to our register page and once registered you can then go ahead and submit data. For more information please checkout our <a target='_blank' href='//docs.nmrxiv.org' class='text-gray-400' target='_blank'>documentation</a>."
260260
></ToolTip>
261-
</a>
262-
<Link
263-
class="items-center justify-center px-4 py-3 text-base font-medium rounded-md text-teal-700 sm:px-8"
264-
>
265261
</Link>
266262
</div>
267263
</div>

0 commit comments

Comments
 (0)