Skip to content

Commit

Permalink
Improved: indentation in utils (hotwax#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanskar345 committed Aug 29, 2023
1 parent d20b49a commit 2798979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const hasError = (response: any) => {

const showToast = async (message: string, options?: any) => {
const config = {
message,
...options
message,
...options
} as any;

if(!options.position) config.position = 'bottom';
if(options.canDismiss){
if (!options.position) config.position = 'bottom';
if (options.canDismiss) {
config.buttons = [
{
text: translate('Dismiss'),
Expand Down

0 comments on commit 2798979

Please sign in to comment.