Created
April 11, 2021 17:02
-
-
Save omirobarcelo/e0273acabd60883511cae12e3c644a72 to your computer and use it in GitHub Desktop.
WebHero - 5 - Using the alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{#if serverRes} | |
{#if serverRes.successful} | |
<Alert type="success" message="Your game has been successfully saved and it's awaiting review!" /> | |
{:else} | |
<Alert | |
type="error" | |
message={serverRes.errorMsg ? serverRes.errorMsg : 'There was a problem sending your game entry. Please, try again.'} | |
/> | |
{/if} | |
{/if} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment