From 14fbd3564291c418a7574961c5258380d117638f Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Fri, 28 Aug 2020 11:21:17 +0800 Subject: [PATCH] Fix typo --- addons/docs/src/lib/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/docs/src/lib/utils.ts b/addons/docs/src/lib/utils.ts index 44725a08695..58f9d75efdf 100644 --- a/addons/docs/src/lib/utils.ts +++ b/addons/docs/src/lib/utils.ts @@ -1,14 +1,14 @@ import { PropSummaryValue } from '@storybook/components'; export const MAX_TYPE_SUMMARY_LENGTH = 90; -export const MAX_DEFALUT_VALUE_SUMMARY_LENGTH = 50; +export const MAX_DEFAULT_VALUE_SUMMARY_LENGTH = 50; export function isTooLongForTypeSummary(value: string): boolean { return value.length > MAX_TYPE_SUMMARY_LENGTH; } export function isTooLongForDefaultValueSummary(value: string): boolean { - return value.length > MAX_DEFALUT_VALUE_SUMMARY_LENGTH; + return value.length > MAX_DEFAULT_VALUE_SUMMARY_LENGTH; } export function createSummaryValue(summary: string, detail?: string): PropSummaryValue {