From ae3f7a76166f586fcd85c537cbdac514af2c6225 Mon Sep 17 00:00:00 2001 From: masaaki1915 Date: Thu, 3 Oct 2019 23:10:50 -0700 Subject: [PATCH] fix typo in code (#26655) Summary: This PR only fixes a typo in `ShadowNode.cpp` ## Changelog [Internal] [Fixed] - Fix typo in `ShadowNode.cpp` Pull Request resolved: https://github.com/facebook/react-native/pull/26655 Differential Revision: D17743059 Pulled By: TheSavior fbshipit-source-id: 6bbaf54b712c0a80da8dfafea2634309279a8f21 --- ReactCommon/fabric/core/shadownode/ShadowNode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ReactCommon/fabric/core/shadownode/ShadowNode.cpp b/ReactCommon/fabric/core/shadownode/ShadowNode.cpp index 5f0e8fbb565..e56f1763264 100644 --- a/ReactCommon/fabric/core/shadownode/ShadowNode.cpp +++ b/ReactCommon/fabric/core/shadownode/ShadowNode.cpp @@ -129,11 +129,11 @@ const State::Shared &ShadowNode::getState() const { State::Shared ShadowNode::getMostRecentState() const { if (state_) { - auto commitedState = state_->getMostRecentState(); + auto committedState = state_->getMostRecentState(); - // Commited state can be `null` in case if no one node was commited yet; + // Committed state can be `null` in case if no one node was committed yet; // in this case we return own `state`. - return commitedState ? commitedState : state_; + return committedState ? committedState : state_; } return ShadowNodeFragment::statePlaceholder();