From ca349d7d9339f4ee6b330e152b54e70b440c3d31 Mon Sep 17 00:00:00 2001 From: Charlie <30303272+charliefoxtwo@users.noreply.github.com> Date: Thu, 5 Oct 2023 16:43:12 -0700 Subject: [PATCH] Use output suffix in StringBuffer method name (#7) --- .../StringBufferSnippet/StringBufferSnippet.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Snippet/OutputSnippet/StringSnippetBlock/StringBufferSnippet/StringBufferSnippet.tsx b/src/components/Snippet/OutputSnippet/StringSnippetBlock/StringBufferSnippet/StringBufferSnippet.tsx index 4b9332c..e6c4bdb 100644 --- a/src/components/Snippet/OutputSnippet/StringSnippetBlock/StringBufferSnippet/StringBufferSnippet.tsx +++ b/src/components/Snippet/OutputSnippet/StringSnippetBlock/StringBufferSnippet/StringBufferSnippet.tsx @@ -11,7 +11,7 @@ export interface StringBufferSnippetProps { export default class StringBufferSnippet extends Component { public render(): ReactNode { const { controlIdentifier, output } = this.props; - const methodName = Snippet.snakeToCamelCase(`${controlIdentifier}_Buffer`); + const methodName = Snippet.snakeToCamelCase(`${controlIdentifier}${output.suffix}_Buffer`); const callbackMethodName = Snippet.snakeToCamelCase(`on_${controlIdentifier}_change`); return (